var singtone={
	"createChart": function(chartType,temp,chartData,DIV){
		require([
					'echarts',
					'theme/blue',
					'echarts/chart/bar',
					'echarts/chart/pie'
		         ], 
		    function (ec){
			myChart = ec.init(DIV);
			var option ;
			switch(chartType){
				case "bar":
					option=sington_barOption(temp,chartData);
					break;
				case "pie":
					option=sington_pieOption(temp,chartData);
					break;
//				case "line":
//					option=lineOption(chartData,chartName);
//					break;
				default:
			}
			
			
			
				
			
			myChart.setOption(option);
		});
	}
};